package day9;

public class TestRect {
    public static void main(String[] args){
        TestForm form = new TestForm();
        form.setId(2);
        int id = 2;
        change(id,form);
        System.out.println("id=" + id);
        System.out.println("form.getId()" + form.getId());
    }

    private static void change(int id,TestForm form){
        id = 4;
        form.setId(id);
    }

}

class TestForm{
    private int id;
    public void setId(int id){
        this.id = id;
    }

    public int getId(){
        return id;
    }
}
